package com.me.iot.server.socket;

import java.nio.channels.CompletionHandler;

/**
 * @author mingke
 * @desc 物联网系统中向下位机发送数据的回调函数
 * @time 2022/5/10
 */
public class MeIOTWriteHandler implements CompletionHandler<Integer, Void> {
    @Override
    public void completed(Integer result, Void attachment) {
        System.out.println("消息投递成功");
    }

    @Override
    public void failed(Throwable exc, Void attachment) {
        System.out.println("消息投递失败");
    }
}
